import Vue from 'vue'
import Router from 'vue-router'
import homePage from '@/components/homePage'
import productsAndSolutions from '@/components/productsAndSolutions'
import service from '@/components/service'
import aboutUs from '@/components/aboutUs'
import newsList from '@/components/newsList'
import newsInfo from '@/components/newsInfo'
import newsInfo2 from '@/components/newsInfo2'
import newsInfo4 from '@/components/newsInfo4'
import newsInfo5 from '@/components/newsInfo5'
import newsInfo6 from '@/components/newsInfo6'
import newsInfo7 from '@/components/newsInfo7'
import newsInfo8 from '@/components/newsInfo8'
import newsInfo9 from '@/components/newsInfo9'
import newsInfo10 from '@/components/newsInfo10'
import newsInfo11 from '@/components/newsInfo11'
import newsInfo12 from '@/components/newsInfo12'
import newsInfo13 from '@/components/newsInfo13'
import newsInfo14 from '@/components/newsInfo14'
import newsInfo15 from '@/components/newsInfo15'
import newsInfo16 from '@/components/newsInfo16'
import newsInfo17 from '@/components/newsInfo17'
import newsInfo18 from '@/components/newsInfo18'
import newsInfo19 from '@/components/newsInfo19'
import newsInfo20 from '@/components/newsInfo20'
import newsInfo21 from '@/components/newsInfo21'



Vue.use(Router)

export default new Router({
  routes: [
    {
      path: '/',
      redirect: '/homePage'
    },
    {
      path: '/homePage',
      name: 'homePage',
      component: homePage,
      children:[
        {
          path: 'newsList',
          name: 'newsList',
          component: newsList,
        },
        {
          path: 'newsInfo',
          name: 'newsInfo',
          component: newsInfo,
        },
        {
          path: 'newsInfo2',
          name: 'newsInfo2',
          component: newsInfo2,
        },
        {
          path: 'newsInfo4',
          name: 'newsInfo4',
          component: newsInfo4,
        },
        {
          path: 'newsInfo5',
          name: 'newsInfo5',
          component: newsInfo5,
        },
        {
          path: 'newsInfo6',
          name: 'newsInfo6',
          component: newsInfo6,
        },
        {
          path: 'newsInfo7',
          name: 'newsInfo7',
          component: newsInfo7,
        },
        {
          path: 'newsInfo9',
          name: 'newsInfo9',
          component: newsInfo9,
        },
        {
          path: 'newsInfo10',
          name: 'newsInfo10',
          component: newsInfo10,
        },
        {
          path: 'newsInfo11',
          name: 'newsInfo11',
          component: newsInfo11,
        },
        {
          path: 'newsInfo12',
          name: 'newsInfo12',
          component: newsInfo12,
        },
        {
          path: 'newsInfo13',
          name: 'newsInfo13',
          component: newsInfo13,
        },
        {
          path: 'newsInfo14',
          name: 'newsInfo14',
          component: newsInfo14,
        },
        {
          path: 'newsInfo15',
          name: 'newsInfo15',
          component: newsInfo15,
        },
        {
          path: 'newsInfo16',
          name: 'newsInfo16',
          component: newsInfo16,
        },
        {
          path: 'newsInfo17',
          name: 'newsInfo17',
          component: newsInfo17,
        },
        {
          path: 'newsInfo18',
          name: 'newsInfo18',
          component: newsInfo18,
        },
        {
          path: 'newsInfo19',
          name: 'newsInfo19',
          component: newsInfo19,
        },
        {
          path: 'newsInfo20',
          name: 'newsInfo20',
          component: newsInfo20,
        },
        {
          path: 'newsInfo21',
          name: 'newsInfo21',
          component: newsInfo21,
        },
        {
          path: 'newsInfo22',
          name: 'newsInfo22',
          component: () => import('@/components/newsInfo22')
        },
        {
          path: 'newsInfo23',
          name: 'newsInfo23',
          component: () => import('@/components/newsInfo23')
        },
        {
          path: 'newsInfo24',
          name: 'newsInfo24',
          component: () => import('@/components/newsInfo24')
        },
        {
          path: 'newsInfo25',
          name: 'newsInfo25',
          component: () => import('@/components/newsInfo25')
        },
        {
          path: 'newsInfo26',
          name: 'newsInfo26',
          component: () => import('@/components/newsInfo26')
        }
      ]
    },
    {
      path: '/productsAndSolutions',
      name: 'productsAndSolutions',
      component: productsAndSolutions
    },
    {
      path: '/service',
      name: 'service',
      component: service
    },
    {
      path: '/aboutUs',
      name: 'aboutUs',
      component: aboutUs
    }
  ]
})
// {
//   path: '/',
//   name: 'homePage',
//   component: homePage
// },
// {
//   path: '/homePage',
//   name: 'homePage',
//   component: homePage
// },
// {
//   path: '/productsAndSolutions',
//   name: 'productsAndSolutions',
//   component: productsAndSolutions
// },
// {
//   path: '/service',
//   name: 'service',
//   component: service
// },
// {
//   path: '/aboutUs',
//   name: 'aboutUs',
//   component: aboutUs
// },
